package com.lemon.smartsafety.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * Created by Cooliean on 16/1/19.
 */
public class GsonUtil {
    public static Gson getCommonGson(){
        Gson gson = new GsonBuilder().create();
        return gson;
    }
    public static Gson getPrettyGson(){
//        .setDateFormat(DateUtils.dateFormatYMD)
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        return gson;
    }
}
